Wave-Particle Duality And The Photoelectric Effect